<?php
class Error
{
    public static function error_404()
    {
        $error_page = Route::get('error')->uri(array('action' => '404'));
        
        $new_request = Request::factory($error_page);
        $new_request = $new_request->execute();	
        $new_request->status(404);
        if ( $new_request->send_headers()->body())
        {
            die( $new_request->body() );
        }
    }
}
